package com.weeho.dongyong.dao;

import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 秀波配置表
 * Created by xiejh on 2016/11/3.
 */
@Component
public class XbConfigDao extends BaseDao{

    public int deleteByPrimaryKey(long id){
        return sqlSession.update("deleteXbConfigByPrimaryKey",id);
    }
    public int insertSelective(XbConfig record){
        return sqlSession.insert("insertXbConfigSelective",record);
    }
    public int updateByPrimaryKeySelective(XbConfig record){
        return sqlSession.update("updateXbConfigByPrimaryKeySelective",record);
    }
    public XbConfig selectByPrimaryKey(long id){
        return sqlSession.selectOne("selectXbConfigByPrimaryKey",id);
    }
    public List<XbConfig> selectByCondition(XbConfig record){
        return sqlSession.selectList("selectXbConfigByCondition",record);
    }

}
